<?php
require_once('lapa.inc.php');
$source = '{test::test_static_property}<br />
{test::testClass("testClass")}<br />
{$test = test::testObject()
$test->test_method("testObject()->test_method")
}<br />
';

$vars['val'] = 0;

$LapaTest->eTest($source, 'compile/test.temp.php', $vars);

class test{
    
    public static $test_static_property = '$test_static_property';
    
    static function testClass($var)
    {
        return $var; 
    }
    static function testObject()
    {
        return new test(); 
    }
    
    public function test_method($var)
    {
        return $var; 
    }
    
}